package com.example.wendao.model.entity;

import androidx.annotation.Nullable;
import androidx.databinding.BaseObservable;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
@Entity
public class NewsComment extends BaseObservable {

    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "commentId")
    private int commentId;

    @ColumnInfo(name = "commentContent")
    private String commentContent;

    @ColumnInfo(name = "commentatorId")
    private int commentatorId;

    @ColumnInfo(name = "fatherId")
    private int fatherId;

    @ColumnInfo(name = "fatherCommentId")
    private int fatherCommentId;

    //回复位置
    @ColumnInfo(name = "replySequence")
    private int replySequence;

    @ColumnInfo(name = "newsorforum")
    private int newsorforum;

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public int getCommentatorId() {
        return commentatorId;
    }

    public void setCommentatorId(int commentatorId) {
        this.commentatorId = commentatorId;
    }

    public int getFatherId() {
        return fatherId;
    }

    public void setFatherId(int fatherId) {
        this.fatherId = fatherId;
    }

    public int getFatherCommentId() {
        return fatherCommentId;
    }

    public void setFatherCommentId(int fatherCommentId) {
        this.fatherCommentId = fatherCommentId;
    }

    public int getReplySequence() {
        return replySequence;
    }

    public void setReplySequence(int replySequence) {
        this.replySequence = replySequence;
    }

    public int getNewsorforum() {
        return newsorforum;
    }

    public void setNewsorforum(int newsorforum) {
        this.newsorforum = newsorforum;
    }

    @Ignore
    public NewsComment(int commentId, String commentContent, int commentatorId, int fatherId, int fatherCommentId, int replySequence, int newsorforum) {
        this.commentId = commentId;
        this.commentContent = commentContent;
        this.commentatorId = commentatorId;
        this.fatherId = fatherId;
        this.fatherCommentId = fatherCommentId;
        this.replySequence = replySequence;
        this.newsorforum = newsorforum;
    }

    public NewsComment(){}
    @Override
    public boolean equals(@Nullable Object o) {
        return super.equals(o);
    }
}
